<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
	</body>
	<script type="text/javascript">
		window.setTimeout(function() {
			console.log("window.setTimeout定时器");
		}, 1000)
		setTimeout(function() {
			console.log("window可以省略");
		}, 1000)
		var timmer= window.setInterval(function(){
			console.log("window.setInterval循环定时器，window可以省略");
		},1000)
		
		setTimeout(function() {
			clearInterval(timmer);
			console.log("清除定时器");
		}, 5000)
	</script>
</html>
